﻿using System;
using System.Windows.Data;
using System.Windows.Media;
using EDMDesigner.UIBusiness.CSDL.Type;
using System.Globalization;

namespace EDMDesigner.Designer.BindingConverter
{
    public class IUITypeToBackgroundConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is UIEntityType)
                return Brushes.LightBlue;
            else if (value is UIComplexType)
                return Brushes.LightGreen;
            throw new NotImplementedException();
        }
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
